package utils 
{
	/**
	 * ...
	 * @author miquel
	 */
	public class cUtils 
	{
		
		public function cUtils() 
		{
			
		}
		
		public static function Shuffle(array_arr:Array):Array
		{
			for (var i:Number = 0; i < array_arr.length; i++)
			{
				var randomNum_num = Math.floor(Math.random() * array_arr.length);
				var arrayIndex = array_arr[i];
				array_arr[i] = array_arr[randomNum_num];
				array_arr[randomNum_num] = arrayIndex;
			}
		
			return array_arr;
		}
		
		public static function IsNumber(_c:String):Boolean
		{
			for (var i:Number = 0; i < _c.length; i++)
			{
				var char:String = _c.charAt(i);	
				if(char < "0" || char > "9")
				{
					return false;
				}
			}
			return true;			
		}
	}

}